import net from '../index'
import url from '../url'
/*
  档案维护查询
*/
export const taskArchives = query => {
  return net.post(url.taskArchives, query)
}
export const queryCompanyInfoListNoPage = query => {
  return net.post(url.queryCompanyInfoListNoPage, query)
}
export const queryArchivesTypes = query => {
  return net.post(url.queryArchivesTypes, query)
}
// 档案新增
export const addArchives = query => {
  return net.post(url.addArchives, query)
}
// 查询档案类型大类
export const getFileType = query => {
  return net.post(url.getFileType, query)
}
// 查询档案类型小类
export const getDetailFileType = query => {
  return net.post(url.getDetailFileType, query)
}
// 档案修改查询单条数据
export const queryOneArchives = query => {
  return net.post(url.queryOneArchives, query)
}
// 档案修改
export const updateArchives = query => {
  return net.post(url.updateArchives, query)
}
// 档案删除
export const deleteArchivesFile = query => {
  return net.post(url.deleteArchivesFile, query)
}
// 文件自动上传
export const autoUploadFile = query => {
  return net.post(url.autoUploadFile, query)
}
// 查询文件单条数据
export const queryFileInfor = query => {
  return net.post(url.queryFileInfor, query)
}
// 修改文件单条数据
export const editFileInfor = query => {
  return net.post(url.editFileInfor, query)
}

/**
 * 档案关联(临时表)
 */
export const queryTempFileList = query => {
  return net.post(url.queryTempFileList, query)
}
export const addTempFileList = query => {
  return net.post(url.addTempFileList, query)
}
export const querySingleTempFileList = query => {
  return net.post(url.querySingleTempFileList, query)
}
export const autoUploadTempFile = query => {
  return net.post(url.autoUploadTempFile, query)
}
export const editTempFileList = query => {
  return net.post(url.editTempFileList, query)
}
export const delTempFileList = query => {
  return net.post(url.delTempFileList, query)
}
export const queryOneDocument = query => {
  return net.post(url.queryOneDocument, query)
}
export const editTempFileInfor = query => {
  return net.post(url.editTempFileInfor, query)
}
